package com.tpp.service;

import com.tpp.pojo.TppUser;
import com.tpp.pojo.baseVo.BaseResult;
import com.tpp.pojo.req.TppUserReq;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface UserService {
    BaseResult validataEmail(String email);

    BaseResult validataloginName(Map map);

    BaseResult sendMail(String email);

    BaseResult registry(TppUserReq tppUserReq);

    BaseResult login(TppUserReq tbUserReq);

    BaseResult findUserByToken(HttpServletRequest request);

    BaseResult loginOut(HttpServletRequest request);

    BaseResult updateUser(TppUserReq tppUserReq, HttpServletRequest request);

    BaseResult upload(MultipartFile multipartFile);

    BaseResult sendInformation(String phone);

    BaseResult validataPhone(String phone);

    BaseResult updatePassword(TppUserReq tppUserReq, HttpServletRequest request);

    BaseResult verigyMail(TppUserReq tppUserReq);

    BaseResult verigyPhone(TppUserReq tppUserReq);

    BaseResult updatePassword2(TppUserReq tppUserReq);
}
